/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package com.pakazaka.controllers;

import com.pakazaka.enums.PlayerStateType;
import com.pakazaka.layer.TiledLayer;
import com.pakazaka.player.Player;
import com.pakazaka.simplecrawler.Core;
import static com.pakazaka.simplecrawler.Core.getInstance;
import java.awt.event.KeyEvent;

/**
 *
 * @author Riseremi
 */
public class OverviewController {

    public static void processOverview(KeyEvent e) {
        Player player = getInstance().getPlayer();
        TiledLayer layer = getInstance().getLayer();
        Core core = getInstance();

        if (e.getKeyCode() == KeyEvent.VK_K && !e.isShiftDown()) {
            core.setWhereMessage("Overview mode");
            core.getPlayer().setState(PlayerStateType.LOOK);
        }
    }

}
